
class Item:

    def __init__(self, name: str, action: str, is_input_required: bool):
        self.name               = name
        self.action             = action
        self.is_input_required  = is_input_required

    @staticmethod
    def from_json(js):
        return Item(
            name                = js['name'],
            action              = js['action'],
            is_input_required   = js['is_input_required']
        )

